package com.zzw.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: zhangzhiwei
 * @Date: 2022/1/4 22:52
 */
@RestController
public class DemoController {

	Logger log =  LoggerFactory.getLogger(DemoController.class);

	@RequestMapping("/test")
	public String test(HttpServletResponse response) throws IOException {
		/*response.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=UTF-8");
		response.getWriter().write("自定义SpringBoot完成！");*/
		return "hello";
	}

}
